//面包屑
const path = ['仓库管理', '物料拆解', {
	label: '物料拆解列表',
	name: 'goodsSplitList'
}, '物料拆解详情'];
//发货单信息
const tableFormInline = [{
    label: '物料拆解单号',
	value: '',
	key:"number"
},
{
    label: '单据类型',
	value: '',
	key:"dismantlingOrderType"
},
{
    label: '拆解单状态',
	value: '',
	key:"status"
},
{
    label: '审批人',
	value: '',
	key:"fff"
},
{
    label: '审批时间',
	value: '',
	key:"approvalTime"
},
{
    label: '过账时间',
	value: '',
	key:"approvalTime"
},
{
    label: '拆解原因',
	value: '',
	key:"approvalTime"
},
{
    label: '备注',
	value: '',
	key:"remark"
}];

//表头—— 拆解商品
const tableHeaderData = [
	{
		prop:'indexNumber',
		label:'序号',
		width:''
	},
	{
		prop:'barCode',
		label:'条码',
		width:''
	},
	{
		prop:'locations',
		label:'地点',
		width:''
	},
	{
		prop:'location',
		label:'仓库',
		width:''
	},
	{
		prop:'afterSalesOrder',
		label:'售后订单',
		width:''
	},
	{
		prop:'goodsTypeName',
		label:'商品类型',
		width:''
    },
    {
		prop:'goods',
		label:'商品编码',
		width:''
	},
	{
		prop:'categoryName',
		label:'品类',
		width:''
	},
	{
		prop:'description',
		label:'描述',
		width:''
	},
	{
		prop:'number',
		label:'数量',
		width:''
	},
	{
		prop:'unit',
		label:'单位',
		width:''
	},
	{
		prop:'theWeightOfBareStone',
		label:'克拉重',
		width:''
	},
	{
		prop:'netGoldWeight',
		label:'净金重',
		width:''
	},
	{
		prop:'theTotalWeightOfTheProduct',
		label:'产品总重',
		width:''
	}
]
//表头—— 拆解后组件
const tableHeaderDataTwo = [
	{
		prop:'indexNumber',
		label:'序号',
		width:''
	},
	{
		prop:'theOldBatch',
		label:'拆解成品条码',
		width:''
	},
	{
		prop:'barCode',
		label:'条码',
		width:''
	},
	{
		prop:'locations',
		label:'地点',
		width:''
	},
	{
		prop:'location',
		label:'仓库',
		width:''
	},
	{
		prop:'afterSalesOrder',
		label:'售后订单',
		width:''
    },
    {
		prop:'goodsTypeName',
		label:'商品类型',
		width:''
	},
	{
		prop:'goods',
		label:'商品编码',
		width:''
	},
	{
		prop:'categoryName',
		label:'品类',
		width:''
	},
	{
		prop:'description',
		label:'描述',
		width:''
	},
	{
		prop:'number',
		label:'数量',
		width:''
	},
	{
		prop:'unit',
		label:'单位',
		width:''
	},
	{
		prop:'theWeightOfBareStone',
		label:'克拉重',
		width:''
	},
	{
		prop:'netGoldWeight',
		label:'净金重',
		width:''
	},
	{
		prop:'theTotalWeightOfTheProduct',
		label:'产品总重',
		width:''
	}
]
//分页
const pager = {
	params: {
		pageIndex: 1,
		pageSize: 10,
	},
	pageTotal: 100,
	pageSizeArr: [10, 20, 30, 40]
};
const formInline = {}
let Model = {
	data() {
		return {
			Model: {
				queryData: undefined,
				path,
				pager,
				activeTab: '1',
				tableFormInline,				//出库单基础信息				
				tableHeaderData,					//商品明细（表头）
				tableData:[],
				tableHeaderDataTwo,
				tableDataTwo:[],
				detailTableFrom: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab1TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab1TableDetail2: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab4TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
			}
		}
	}
}
export default Model;
